package com.huidu.bitrade.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class PageResultByJPA<T> {

    @ApiModelProperty("是否最后一条")
    private boolean isLast;

    @ApiModelProperty("列表数据")
    private List<T> content;

    @ApiModelProperty("总页数")
    private int totalPages;

    @ApiModelProperty("总条数")
    private long totalElements;

    @ApiModelProperty("当前页记录数")
    private int size;
}
